package cn.li.security.jwt.service;


import org.springframework.security.core.userdetails.UserDetails;

import java.util.Map;

//定义jwt的服务
public interface  IJwtService {

    //转化成jwtResult
    JwtResult generator(Map<String,Object> data);

    //转化成jwtResult
    JwtResult generator(UserDetails userDetails);

    //转化成对应的账户信息
    Object  retrieve(String token);

    //得到header中，token的前缀
    String getAuthenticationScheme();
}
